<?php

if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {

	exit('Access Denied');

}

$sql = <<<EOF

CREATE TABLE IF NOT EXISTS `pre_csdn123kuaibao_reguser` (

  `uid` int(11) NOT NULL DEFAULT '0',
  `username` varchar(500) DEFAULT NULL,
  `username_pwd` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`uid`)


) ENGINE=MyISAM;

EOF;

runquery($sql);



$sql2 = <<<EOF

CREATE TABLE IF NOT EXISTS `pre_csdn123kuaibao_news` (

  `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `subject` varchar(255) DEFAULT NULL,
  `uidstr` varchar(500) DEFAULT NULL,
  `fid` int(11) DEFAULT '0',
  `typeid` int(11) DEFAULT '0',
  `tid` int(11) DEFAULT '0',
  `fromurl` varchar(255) DEFAULT NULL,
  `del` int(11) DEFAULT '0',
  PRIMARY KEY (`ID`),
  UNIQUE KEY `fromurl` (`fromurl`)

) ENGINE=MyISAM;

EOF;

runquery($sql2);


$sql3 = <<<EOF

CREATE TABLE IF NOT EXISTS `pre_csdn123kuaibao_cron` (

  `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `keyword` varchar(255) DEFAULT NULL,
  `uidstr` varchar(500) DEFAULT NULL,
  `fid` int(11) DEFAULT '0',
  `typeid` int(11) DEFAULT '0',
  `catchnum` int(11) DEFAULT '0',
  `catchtime` int(11) DEFAULT '0',
  PRIMARY KEY (`ID`)

) ENGINE=MyISAM;

EOF;

runquery($sql3);



$finish = TRUE;

